FileMove

 

The 'FileMove' function moves the specified file.

 

int FileMove(string source_file, stirng target_file);

 

Parameters

string source_file : original file name including the absolute path

string target_file : target file name including the absolute path

 

Return Value

result (1 = success, 0 = fail)

 

Example

result = @FileMove("C:\\TEXT1.TXT", "D:\\TEXT2.TXT");

if(result == 1)

{

@Message("The file move success");

}

else

{

@Message("The file move fail");

}

Description : The first line moves 'C:\\TEXT1.TXT' onto "D:\\TEXT2.TXT". If 'result' is '1', 'The file move success' message will be displayed on the screen. If 'result' is '0', 'The file move fail' message will be displayed on the screen.